package com.security.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class DemoController {

    @GetMapping
    public String execute(){
        System.out.println("DemoController get");
        return "DemoController get";
    }

    @PostMapping
    public String post(){
        System.out.println("DemoController post");
        return "DemoController post";
    }
}
